package lhb.test.SC.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import lhb.test.SC.zuul.filter.ErrorFilter;
import lhb.test.SC.zuul.filter.PostFilter;
import lhb.test.SC.zuul.filter.PreFilter;
import lhb.test.SC.zuul.filter.RouteFilter;


@SpringBootApplication
@EnableZuulProxy
public class ZuulApplication {

	public static void main(String[] args) {
		SpringApplication.run(ZuulApplication.class, args);
	}
	
	@Bean
	public ErrorFilter getErrorFilter(){
		return new ErrorFilter();
	}
	
	@Bean
	public PostFilter getPostFilter(){
		return new PostFilter();
	}
	
	@Bean
	public PreFilter getPreFilter(){
		return new PreFilter();
	}
	
	@Bean
	public RouteFilter getRouteFilter(){
		return new RouteFilter();
	}
}
